<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" lang="en"
      th:with="unixstamp=${#dates.createNow().time}">
<head th:replace="common::header"></head>
<style>
    #allocateLayer .layui-form-radio {
        margin-top: 16px;
    }
</style>
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header t-title layui-bg-cyan mlk-title">图库管理</div>
                <div class="layui-card-body">


                    <form class="layui-form" id="queryForm">
                        <div class="layui-form-item">
                            <div class="layui-inline" style="margin-right: -50px;">
                                <label class="layui-form-label">分类</label>
                                <div class="layui-input-inline" style="width: 130px;">
                                    <input type="text" name="category" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin-right: -50px;">
                                <label class="layui-form-label" style="width: 130px;">品牌</label>
                                <div class="layui-input-inline" style="width: 130px;">
                                    <input type="text" name="branch" autocomplete="off" class="layui-input" >
                                </div>
                            </div>
                            <div class="layui-inline" style="margin-right: -50px;">
                                <label class="layui-form-label" style="width: 130px;">型号</label>
                                <div class="layui-input-inline" style="width: 130px;">
                                    <input type="text" name="type" autocomplete="off" class="layui-input" >
                                </div>
                            </div>
                            <div class="layui-inline" style="margin-right: -50px;">
                                <label class="layui-form-label" style="width: 130px;">对应型号</label>
                                <div class="layui-input-inline" style="width: 130px;">
                                    <input type="text" name="refType" autocomplete="off" class="layui-input" >
                                </div>
                            </div>
                            <div class="layui-inline" style="margin-right: -50px;">
                                <label class="layui-form-label" style="width: 130px;">时间码</label>
                                <div class="layui-input-inline" style="width: 130px;">
                                    <input type="text" name="timeCode" autocomplete="off" class="layui-input" >
                                </div>
                            </div>


                            <div class="layui-inline" style="margin-right: -50px;width: 100px;" >
                                <div class="layui-input-inline">
                                    <a href="#" class="layui-btn layui-btn-normal" lay-submit lay-filter="*" id="submit">查询</a>
                                    <a href="#" class="layui-btn layui-btn-danger" lay-submit lay-filter="*" id="reset">重置</a>
                                </div>
                            </div>
                            <input type="reset" class="mlk-hide" id="queryReset">
                        </div>
                    </form>

                    <table class="layui-table" id="table" lay-filter="table" style="height:100%;"></table>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</body>

<div id="updateLayer" class="mlk-hide">
    <form class="layui-form layui-form-pane" id="updateForm" lay-filter="updateForm">
        <input type="hidden" name="id">
        <div class="layui-form-item" pane>
            <label class="layui-form-label">分类</label>
            <div class="layui-input-block">
                <input type="text" name="category" required  lay-verify="required" placeholder="请输入分类" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">品牌</label>
            <div class="layui-input-block">
                <input type="text" name="branch" required  lay-verify="required" placeholder="请输入品牌" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">型号</label>
            <div class="layui-input-block">
                <input type="text" name="type" required  lay-verify="required" placeholder="请输入型号" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">对应型号</label>
            <div class="layui-input-block">
                <input type="text" name="refType" required  lay-verify="required" placeholder="请输入对应型号" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">时间码</label>
            <div class="layui-input-block">
                <input type="text" name="timeCode" required  lay-verify="required" placeholder="请输入时间码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">含水重量</label>
            <div class="layui-input-block">
                <input type="text" name="containWaterWeight" required  lay-verify="required" placeholder="请输入含水重量" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">不含水重量</label>
            <div class="layui-input-block">
                <input type="text" name="noContainWaterWeight" required  lay-verify="required" placeholder="请输入不含水重量" autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>
</div>

<div id="picLayer" class="mlk-hide">
    <div id="picContent"></div>
</div>

<script type="text/html" id="toolbar">
</script>
<script type="text/html" id="tool">
    <a class="layui-btn layui-btn-sm layui-btn-warm" lay-event="update">修改</a>
    <a class="layui-btn layui-btn-sm layui-btn-dabger" lay-event="del">删除</a>
    <a class="layui-btn layui-btn-sm layui-btn-deafult" lay-event="lookPic">查看图片</a>
</script>
<div th:include="common::footer"></div>
<script type="text/javascript" th:src="@{/js/picBase/pic.js}"></script>
</html>